package cn.yang.service.impl;

import cn.yang.domain.TVehicle;

import cn.yang.mapper.TVehicleMapper;
import cn.yang.service.TVehicleService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.zhentao.nlz.project.dto.DictionaryDto;
import com.zhentao.utils.Result;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 27078
* @description 针对表【t_vehicle】的数据库操作Service实现
* @createDate 2024-10-14 11:21:51
*/
@Service
public class TVehicleServiceImpl extends ServiceImpl<TVehicleMapper, TVehicle>
    implements TVehicleService {

    @Override
    public Result PageVehicle() {
        List<TVehicle> list = this.list();
        return Result.success(list);
    }

    @Override
    public Result savevehicle(TVehicle vehicle) {
        boolean save = this.save(vehicle);
        return Result.success(save);
    }
}




